package com.wtwd.campus.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "rocketmq.consumer")
public class ConsumerConfig {

    private String deviceGroupName;

    private String namesrvAddr;

    private String deviceTopic;

    private String deviceTag;

    public String getDeviceGroupName() {
        return deviceGroupName;
    }

    public void setDeviceGroupName(String deviceGroupName) {
        this.deviceGroupName = deviceGroupName;
    }

    public String getNamesrvAddr() {
        return namesrvAddr;
    }

    public void setNamesrvAddr(String namesrvAddr) {
        this.namesrvAddr = namesrvAddr;
    }

    public String getDeviceTopic() {
        return deviceTopic;
    }

    public void setDeviceTopic(String deviceTopic) {
        this.deviceTopic = deviceTopic;
    }

    public String getDeviceTag() {
        return deviceTag;
    }

    public void setDeviceTag(String deviceTag) {
        this.deviceTag = deviceTag;
    }

    @Override
    public String toString() {
        return "ConsumerConfig{" +
                "deviceGroupName='" + deviceGroupName + '\'' +
                ", namesrvAddr='" + namesrvAddr + '\'' +
                ", deviceTopic='" + deviceTopic + '\'' +
                ", deviceTag='" + deviceTag + '\'' +
                '}';
    }
}
